/**
    商品定价 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewProductPriceRuleInfo:{
                index:0,
                flowComponent:'viewProductPriceRuleInfo',
                ruleId:'',
ruleName:'',
price:'',
otPrice:'',
vipPrice:'',
ownerPrice:'',
deduction:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadProductPriceRuleInfoData();
        },
        _initEvent:function(){
            vc.on('viewProductPriceRuleInfo','chooseProductPriceRule',function(_app){
                vc.copyObject(_app, $that.viewProductPriceRuleInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewProductPriceRuleInfo);
            });

            vc.on('viewProductPriceRuleInfo', 'onIndex', function(_index){
                $that.viewProductPriceRuleInfo.index = _index;
            });

        },
        methods:{

            _openSelectProductPriceRuleInfoModel(){
                vc.emit('chooseProductPriceRule','openChooseProductPriceRuleModel',{});
            },
            _openAddProductPriceRuleInfoModel(){
                vc.emit('addProductPriceRule','openAddProductPriceRuleModal',{});
            },
            _loadProductPriceRuleInfoData:function(){

            }
        }
    });

})(window.vc);
